package com.tuju.jetpackfirstdemo.utils;

import android.os.Environment;

import java.io.File;

/**
 * Create by shadow on 2018/12/18.
 */
public class FileUtil {
    public static final String PARENT_PATH = "/ATujuVideo";

    public static File getMkdirFile() {
        if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState())) {
            File mFile = new File(Environment.getExternalStorageDirectory().getPath() + PARENT_PATH);
            if (!mFile.exists()) {
                mFile.mkdir();
            }
            return mFile;
        }
        return null;
    }
}
